package com.ives.launcher.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.util.AttributeSet;
import android.view.View;

public class View_SearchEdit extends View {
	Paint paint;
	public View_SearchEdit(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}

	public View_SearchEdit(Context context, AttributeSet attrs) {
		this(context, attrs,0);
	}

	public View_SearchEdit(Context context) {
		this(context,null);
		setBackgroundColor(Color.BLUE);
	}

	private void init(){
		paint = new Paint();
	}
	@Override
	protected void onDraw(Canvas canvas){
		super.onDraw(canvas);
		
		paint.setColor(Color.GRAY);
		paint.setStyle(Style.STROKE);
		paint.setStrokeWidth(3.5f);
		canvas.drawRect(getLeft()+20, getTop(), getRight()-21, getBottom()-5, paint);
		paint.setTextSize(30);
		paint.setStyle(Style.FILL);
		canvas.drawText("google", getLeft()+40, getTop()+40, paint);
		
	}
	
	
}
